package com.study.service.impl;

import com.study.dao.UserDao;
import com.study.entity.User;
import com.study.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yinyin
 * @create 2024/11/27 下午 4:17
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    //调用dao的方法获取数据
    @Override
    public User getOne(int id) {
        return userDao.getOne(id);
    }
}
